package com.gitee.ice1938.module.admin.framwork;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * 
 * @author ice1938@qq.com at 2019-5-31
 *
 */
@Component
public class AdminContext implements ApplicationContextAware, InitializingBean {

	private ApplicationContext applicationContext;

	/**
	 * 在bean 初始化后调用
	 */
	@Override
	public void afterPropertiesSet() throws Exception {

	}

	public ApplicationContext getApplicationContext() {
		return applicationContext;
	}

	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		this.applicationContext = applicationContext;
	}

}
